import { defineEventHandler, deleteCookie } from "h3";

export default defineEventHandler(async (event) => {
  deleteCookie(event, "auth-token")
  // 等待10s
  await new Promise((resolve) => setTimeout(resolve, 3000))
  return { message: "Logged out successfully" }
});